package com.xuebang.admin.util;

import java.util.ArrayList;
import java.util.List;

public class JsonResponse {

	private boolean success;
	private String message;
	private List<String> messages = new ArrayList<String>();

	public JsonResponse() {
	}

	public JsonResponse(boolean success) {
		this(success, null);
	}

	public JsonResponse(boolean success, String message) {
		this.success = success;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void appendMessage(String msg) {
		messages.add(msg);
	}

	public List<String> getMessages() {
		return messages;
	}

}
